package com.ace3l.legal.gwt.studentportal.mainpage.client;

import com.ace3l.legal.gwt.domainmodule.client.Ace3LPageTemplate;
import com.synesthesiaconsulting.gwt.resources.client.DirectorUnit;
import com.synesthesiaconsulting.gwt.resources.client.GWTActionUnitFactory;

/**
 * Created by IntelliJ IDEA.
 * User: ageer
 * Date: Jul 27, 2008
 * Time: 7:14:17 PM
 * To change this template use File | Settings | File Templates.
 */
public class StudentPortal extends Ace3LPageTemplate {


    public void init() {
        director.addModule("studentportal.StudentPortal");

        director.getDirector()
                .mapAction("studentportal.StudentPortal.logout", "homeportal.Ace3LPortal.$SELF");


        DirectorUnit bodyPanelManager = director.getDirector("studentportal.StudentPortal")
                                                .addSubModule("bodyPanel");
        StudentPortalWidget home = new StudentPortalWidget(director.getDirector("studentportal.StudentPortal"));
        bodyPanelManager.addAction("startPage", GWTActionUnitFactory.makeGWTNavigationUnit(home));

        bodyPanelManager.applyActionTo("startPage",bodyPanel);
//        bodyPanel.add(new HTMLPanel(director.getDirector().toHTML()));


    }
}
